<?php /* Smarty version 2.6.18, created on 2008-06-13 14:08:00
         compiled from admin/Websetup_autocoder_form.html */ ?>
<div id="autocoder">

	<form id="formlabels" method="post">
	<input type="hidden" name="tempfilename" value="<?php echo $this->_tpl_vars['tempfilename']; ?>
" />
	<h1><?php echo $this->_tpl_vars['title']; ?>
</h1>
	<br />
	<table>
	<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['labels']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
		<tr>
			<th><?php echo $this->_tpl_vars['labels'][$this->_sections['i']['index']]['1']; ?>
：</th>
			<td>
				<input id='name<?php echo $this->_sections['i']['index']; ?>
' name="name[<?php echo $this->_sections['i']['index']; ?>
]" type="text" size="50" class='required' title='真的不填写<?php echo $this->_tpl_vars['labels'][$this->_sections['i']['index']]['1']; ?>
了吗？' alt="{event: 'blur'}" />
			
			</td>
		</tr>
	<?php endfor; endif; ?>
		<tr>
			<td></td>
			<td>
				<input type="button" id="submitlabels" value="生成表入口文件" />
				<input type="reset" value="清空" />
			</td>
		</tr>
	
	</table>
	</form>
	
</div>
<br />
<div id="result">
</div>